<template>
  <div class="error-container">
    <div class="error-icon">
      <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
        <circle cx="12" cy="12" r="10"></circle>
        <line x1="12" y1="8" x2="12" y2="12"></line>
        <line x1="12" y1="16" x2="12.01" y2="16"></line>
      </svg>
    </div>
    <h1 class="error-title">没有权限访问</h1>
    <p class="error-description">抱歉，您没有访问此页面的权限，请联系管理员。</p>
    <router-link to="/" class="back-home-btn">返回首页</router-link>
  </div>
</template>

<script setup>
// 此处可添加逻辑代码，如果 404 页面无需额外逻辑，此部分可保持为空
</script>

<style scoped>
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #f5f5f5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.error-icon {
  margin-bottom: 2rem;
  color: #ff4d4f;
}

.error-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.error-description {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
  text-align: center;
}

.back-home-btn {
  background-color: #1890ff;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.back-home-btn:hover {
  background-color: #40a9ff;
}
</style>